
using System;


namespace Tama_Chan.Utils
{
   public static class GeneralUtils
   {
      public static long GetSecondsAsTicks(long numberOfSeconds)
      {
         return TimeSpan.TicksPerSecond * numberOfSeconds;
      }


      public static long GetSecondsAsTicks(float numberOfSeconds)
      {
         return (long)(TimeSpan.TicksPerSecond * numberOfSeconds);
      }


      public static float GetSecondsFromTicks(long ticks)
      {
         return (float)ticks / TimeSpan.TicksPerSecond;
      }

   }
}
